package com.htdata.htiiot.main;
import java.util.Timer;

public class Main {
	static Long sec = 5000L;

	public static void main(String[] args){
		
		for(String arg:args){
			String[] split = arg.split("=");
			//(split[0].equals("sec")	
			switch (split[0]){
			  case "sec":				
				sec = Long.parseLong(split[1])*1000;
				break;
			  default:
				sec = 5000L;
				break;
			}
			
		}
		Timer timer = new Timer();
	    timer.schedule(new Task(), 3000L, sec);;
	}


}
